const http = uni.$tn.http;


//查询用户登录
export function listUserLevel() {
	return http.post('/system/config/miniapp/config',{},{
		custom: {
			ShowLoading: false
		}
	});
}

// 查询用户登录
export function socialLogin(type, code, state) {
	return http.request({
		url: `/member/auth/social-login`,
		method: 'post',
		data: {
		  type,
		  code,
		  state,
		},
	})
}


export function getDeviceAuthInfo(val) {
	return http.request({
		url: `/iot/common/get-auth-info`,
		method: 'get',
		params: {
			deviceName: val
		}
	})
}